package com.hunan.api.catv.service.impl.files;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.FilesDao;
import com.hunan.api.catv.entity.po.Files;
import com.hunan.api.catv.entity.vo.FilesVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FilesService extends CommonService<Files, FilesVo, Integer> {

    @Autowired
    private FilesDao filesDao;

    @Override
    public BaseDao<Files, FilesVo, Integer> getBaseDao() {
        return filesDao;
    }

    public Integer deleteByFileId(String fileId) {
        return filesDao.deleteByFileId(fileId);
    }
}
